﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace WeiXinSDK.MP.Model
{
	public class AutoReplyInfoModel : ResponseModel
	{
		public int is_add_friend_reply_open { get; set; }
		public int is_autoreply_open { get; set; }
		public AutoreplyInfo add_friend_autoreply_info { get; set; }
		public AutoreplyInfo message_default_autoreply_info { get; set; }
		public KeywordAutoreplyInfo keyword_autoreply_info { get; set; }

		public class AutoreplyInfo
		{
			public string type { get; set; }
			public string content { get; set; }
		}

		public class KeywordAutoreplyInfo
		{
			public List[] list { get; set; }
			public class List
			{
				public string rule_name { get; set; }
				public int create_time { get; set; }
				public string reply_mode { get; set; }
				public Keyword_List_Info[] keyword_list_info { get; set; }
				public Reply_List_Info[] reply_list_info { get; set; }

				public class Keyword_List_Info
				{
					public string type { get; set; }
					public string match_mode { get; set; }
					public string content { get; set; }
				}
				public class Reply_List_Info
				{
					public string type { get; set; }
					public News_Info news_info { get; set; }
					public string content { get; set; }
					public class News_Info
					{
						public NewsList[] list { get; set; }
					}

					public class NewsList
					{
						public string title { get; set; }
						public string author { get; set; }
						public string digest { get; set; }
						public int show_cover { get; set; }
						public string cover_url { get; set; }
						public string content_url { get; set; }
						public string source_url { get; set; }
					}
				}
			}
		}
	}
}
